<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./img/asset-favicon.ico">
    <title>社交-问答详情</title>

    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->

    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css" />
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css" />
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css" />
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css" />
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css" />
    <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-detail.css" />
</head>

 <body style="background-image: url('./img/3.jpg'); background-size: 100%;height:2500px;background-repeat: no-repeat;";>

<div id="big">


    <div class="wrapper" style="opacity: 50;">
        <!--引用组件-->
        <!--头部导航-->
<header>
  <div class="sui-navbar">
      <input value="{{ ques_data.label.id }}" v-model="label_id">
    <div class="navbar-inner">
      <a href="index-logined.html" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交"/></a>
      <ul class="sui-nav">
        <li class="active"><a href="./headline-logined.html">头条</a></li>
        <li><a href="./qa-logined.html" >问答</a></li>
        <li><a href="./activity-index.html" >活动</a></li>
        <li><a href="./makeFriends-index.html" >交友</a></li>
        <li><a href="./spit-index.html" >吐槽</a></li>
        <li><a href="./recruit-index.html"  >招聘</a></li>
      </ul>
      <form class="sui-form sui-form pull-left">
        <input type="text" placeholder="输入关键词...">
        <span class="btn-search fa fa-search"></span>
      </form>
      <div class="sui-nav pull-right info">
          <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>
          <li class="hover">
            <span class="fa fa-plus "></span>
            <ul class="hoverinfo">
              <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a href="./headline-submit.html">去分享</a></li>
              <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html" target="_blank">提问题</a></li>
              <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html" target="_blank">去吐槽</a></li>
              <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a href="./makeFriends-submit.html" target="_blank">发约会</a></li>
            </ul>
          </li>
          <li v-if="username">
           <div>
               <a href="./person-homepage.html" target="_blank" class="homego" style="margin-right: 10px">
               <img v-if="avatar_url" :src="avatar_url" alt="用户头像" style="width: 39px;height: 39px;"/>
               <img v-else src="./img/widget-photo.png" alt="用户头像" />
                     <span>[[ username ]]</span>
           </a>
           <a href="#" class="homego" @click="logout" style="font-size: 15px;">退出</a>
           </div>

       </li>
       <li v-else>
           <a href="./person-loginsign.html" class="homego" style="font-size: 15px;">登录/注册</a>
       </li>
      </div>
  </div>
  </div>

</header>


    </div>
    <div class="tab-nav " style="opacity: 0.8;">
    <div class="wrapper">
        <ul class="fl sui-nav nav-tabs navbar-dark">
            <li class="active"><a href="#index" data-toggle="tab">首页</a></li>
            <li><a href="#php" data-toggle="tab">Php</a></li>
            <li><a href="#js" data-toggle="tab">Javascript </a></li>
            <li><a href="#python" data-toggle="tab">Python</a></li>
            <li><a href="#java" data-toggle="tab">Java</a></li>
        </ul>
        <span class="fr more"><a href="./qa-allTag.html" target="_blank">更多</a></span>
        <div class="clearfix"></div>
    </div>

</div>
    <!--两列布局-->
    <div class="wrapper qa-content" style="opacity: 0.8;">

<div class="qa-title">
    <div class="fl title">
       <h2>{{ ques_data.title }}</h2>
       <p>
           <a href="./qa-allTag.html"><span class="tag">{{  ques_data.label.label_name }}</span></a>
           <span class="author"></span>
           <span>[[getDateDiff(shijianchuo('{{ ques_data.create_time }}')) ]]提问 </span>
           <span>[[getDateDiff(shijianchuo('{{ ques_data.update_time }}')) ]]更新 </span>
       </p>
    </div>
    <div class="fr share">
        <h4>分享到：</h4>
        <ul class="share-go">
            <li><img src="./img/widget-weibo.png" alt=""></li>
            <li><img src="./img/widget-weixin.png" alt=""></li>
            <li><img src="./img/widget-weibo.png" alt=""></li>
            <li><img src="./img/widget-weixin.png" alt=""></li>
        </ul>

    </div>
    <div class="clearfix"></div>
</div>
        <div class="fl left-list">
            <div class="problem-detail">
    <div class="title-intro">

        <div class="title">
            <div class="detail">
            {{ ques_data.content | safe}}
            </div>

            <div class="clearfix"></div>


            <div class="operate">
                <span class="time">[[getDateDiff(shijianchuo('{{ ques_data.create_time }}')) ]]提问</span>
                <span class="comment" @click="pinlun">评论</span>
                <span class="edit">编辑</span>
                <span class="jubao">举报</span>
            </div>



            <div class="comment-box" >
                <form class="comment-form" @submit.prevent="tijiao">
                    <textarea row="1"  placeholder="请评论" v-model="text"></textarea>
                    <button type="submit" class="sui-btn submit-comment" >提交评论</button>
                </form>

            </div>

        </div>

    </div>
    <div class="answer-intro" >
        <h4 class="answer-num">{{ ques_data.commentmodel_set.length }}回答</h4>
        {% for c in ques_data.commentmodel_set %}
        <div class="pl">
        <div class="sidebar" >
            <button type="button" @click="dianzan('is_like',{{ c.content.id }})" class="like" data-placement="right" data-toggle="tooltip" title="问题对人有帮助，内容完整，我也想知道答案"><i class="fa fa-caret-up" aria-hidden="true"></i></button>
            <span class="count">{{ c.content.like_count }}</span>
            <button type="button" @click="dianzan('is_hate',{{ c.content.id }})" class="hate" data-placement="right" data-toggle="tooltip" title="问题没有实际价值，缺少关键内容，没有改进余地"><i class="fa fa-caret-down" aria-hidden="true"></i></button>
        </div>
        <div class="title" >
            <p >{{ c.content.ccontent }} </p>

            <div class="operate" >
                <div class="tool pull-left" >
                    <span class="time" >[[getDateDiff(shijianchuo('{{ c.create_time }}')) ]]回答</span>
                    <span class="comment" @click="pinlun">评论</span>

                    <span class="jubao" @click="dianzan('is_report',{{ c.content.id }})" v-if="habbit.indexOf({{ c.content.id }})===-1">举报</span>
                    <span class="jubao" @click="dianzan('is_report',{{c.content.id }})" v-else>已举报</span>
                </div>

                <div class="myanswer pull-right" >
                    <img src="./img/widget-photo.jpg" alt="">
                    <a href="#" v-if=" {{ c.user.username }} === username">我的回答</a>
                    <a href="#" v-else>{{ c.user.username  }}</a>

                </div>


                <div class="clearfix"></div>
                <hr style=" border-bottom: 1px solid #a0a6ad; ">
            </div>






            <div class="comment-box">



                <form class="comment-form">
                    <textarea row="1" placeholder="请输入..."></textarea>
                    <button type="submit" class="sui-btn submit-comment">提交评论</button>
                </form>

            </div>
        </div>
        </div>
        {% endfor %}


        <div class="clearfix"></div>
    </div>

</div>

        </div>
        <div class="fl right-tag">
            <div class="similar-problem">
    <h3 class="title">相似问题</h3>
    <ul class="problem-list">
        {% for l in label_data %}
        <li class="list-item" >
            <p class="list-title"> <a :href="['./qa-detail.html?id=' + {{ l.ques.id }} ]">{{ l.ques.title  }} </a></p>
           <p class="list-info"><a href="./qa-allTag.html"> {{ l.label.label_name  }}</a> </p></a>
        </li>
        {% endfor %}

    </ul>
</div>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="footer" style="opacity: 0.8;">
        <div class="wrapper">
            <div class="footer-bottom">
    <div class="link">
        <dl>
            <dt>网站相关</dt>
            <dd>关于我们</dd>
            <dd>服务条款</dd>
            <dd>帮助中心</dd>
            <dd>编辑器语法</dd>
        </dl>
        <dl>
            <dt>常用链接</dt>
            <dd>传智播客</dd>
            <dd>传智论坛</dd>
        </dl>
        <dl>
            <dt>联系我们</dt>
            <dd>联系我们</dd>
            <dd>加入我们</dd>
            <dd>建议反馈</dd>
        </dl>
        <dl>
            <dt>关注我们</dt>
            <dd>微博</dd>
            <dd>twitter</dd>
        </dl>

        <div class="xuke">
            <h3>内容许可</h3>
            <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
            <p>本站由 传智研究院 提供更新服务</p>
        </div>
    </div>


    <p class="Copyright">Copyright © 2017 传智问答社区 当前版本 0.0.1</p>
</div>
        </div>

    </div>




</div>

</body>


<script src="./js/axios-0.18.0.min.js"></script>
<script src="./js/vue-2.5.16.js"></script>
<script src="./js/host.js"></script>
<script src="./js/jquery-1.12.4.min.js"></script>
<script src="./js/qa-detail.js"></script>
<script src="./js/base.js"></script>



<script>

</script>
<script>
 $(function(){
   $(".hover").hover(function(){
     $(".hoverinfo").stop().animate({
      opacity: "show"
    },"slow");
   $(this).find(".fa-plus").css("color","#e64620");
   },function(){
     $(".hoverinfo").stop().animate({
        opacity: "hide"
     },"slow");

   })
 })
</script>





